package com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * AI对话表
 *
 * @TableName ai_conversations  创建AI对话表
 */

@TableName(value = "ai_conversations")
@Data
public class AiConversation implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 对话ID
     */
    @TableId(value = "conversation_id", type = IdType.AUTO)
    private Long conversationId;
    /**
     * 对话标题
     */
    @TableField(value = "title")
    private String title;
    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;
    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private Date createdAt;
    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private Date updatedAt;
    /**
     * 是否删除：0-未删除，1-已删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;
    /**
     * 最后一条消息内容
     */
    @TableField(value = "last_message")
    private String lastMessage;
}